package com.cn.wanxi.service.impl;

import com.cn.wanxi.entity.ProducctEntity;
import com.cn.wanxi.mapper.ProductMapper;
import com.cn.wanxi.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;

    @Override
    public String add(ProducctEntity producctEntity) {
        return productMapper.add(producctEntity) > 0 ? "success" : "error";
    }
}
